﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class PageBusiness
    {
        public bool Add(Page page) { return new PageDAO().Add(page); }
        public bool Delete(int Id) { return new PageDAO().Delete(Id); }
        public bool Update(Page page) { return new PageDAO().Update(page); }
        public Page GetEntity(int Id) { return new PageDAO().GetEntity(Id); }
        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new PageDAO().GetList(fieldList, orderField, orderBy, pageIndex, pageSize, where);
        }
    }
}
